﻿@model Testicide.Models.Feature
           

@{
    ViewBag.Title = "Details";
}

   
        <div class="order">

            <div class="display-label">
                <b>@Html.DisplayNameFor(model => model.Name): </b>@Html.DisplayFor(model => model.Name)
            </div>

            <div class="display-label">
                <b>@Html.DisplayNameFor(model => model.Date):</b>@Html.DisplayFor(model => model.Date)
            </div>

            <div class="display-label">
                <b>@Html.DisplayNameFor(model => model.Module.Name):</b>@Html.DisplayFor(model => model.Module.Name)
            </div>
            <div>
                <div class="display-label"><b>Scenarios:</b></div>
                <table>
                    @foreach (var item in Model.Scenarios)
                    {
                        <tr>
                            <td >
                                <a href="@Url.Action("Details","Scenario", new { id=item.ID })">@item.Content</a>
                            </td>
                            <td width="50px"></td>
                            <td>
                                <a href="@Url.Action("Edit","Scenario", new { id=item.ID })">
                                    <img class="icons" src="~/pictures/edit.png" />
                                </a>|
                                <a href="@Url.Action("Delete","Scenario", new { id=item.ID })">
                                    <img class="icons" src="~/pictures/delete.png" />
                                </a>
                            </td>
                        </tr>
                    }
                </table>
                @using (Html.BeginForm("getText", "Feature", new { Fid = Model.ID }))
                {
                    <br />
                    <button>Save</button><br />
                    <textarea id="txt_scenario" name="txt_scenario" style="width:1000px; height:100px;"></textarea>
                }
            </div>
            <p>
                @Html.ActionLink("Back to Features", "Index")
            </p>
            </div>
        

